package com.baor.controller;

import com.baor.service.LeaveTypeService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/LeaveType")
public class LeaveTypeController {

    @Autowired
    private LeaveTypeService leaveTypeService;

    @RequestMapping("/LeaveTypeList")
    public AjaxResult<?> leaveTypeList() {
        AjaxResult<?> rs = leaveTypeService.LeaveTypeList();
        return rs;
    }
}
